/*******************************************************************************
 *
 * Copyright (c) 2008-2011 ayound@gmail.com, guwei8576431@gmail.com
 * This program and the accompanying materials
 * are made available under the terms of the GNU GENERAL PUBLIC LICENSE
 * which accompanies this distribution, and is available at
 * http://dev.perl.org/licenses/gpl1.html
 * All rights reserved.
 *
 * Created on 2009-10-12
 *******************************************************************************/

package org.cgtw.scriptprofile.server.model;

/**
 * javabean for each profile function
 */
public class ProfileItem {
	/**
	 * the start time of function
	 */
	private long start;
	/**
	 * the end time of function
	 */
	private long end;
	/**
	 * the function index in javascript and html resource
	 */
	private int funcIndex;
	/**
	 * execute index of javascript
	 * it is runtime index
	 * It is the basic of the relation
	 */
	private int execIndex;

	/**
	 * js function name
	 */
	private String funcName;

	/**
	 * js function excute time
	 */
	private long time;

	/**
	 * resource url
	 */
	private String url;

	/**
	 * line number of function in the resource
	 */
	private int line;

	/**
	 * @return Returns the funcName.
	 */
	public String getFuncName() {
		return funcName;
	}

	/**
	 * @param funcName The funcName to set.
	 */
	public void setFuncName(String funcName) {
		this.funcName = funcName;
	}

	/**
	 * @return Returns the line.
	 */
	public int getLine() {
		return line;
	}

	/**
	 * @param line The line to set.
	 */
	public void setLine(int line) {
		this.line = line;
	}

	/**
	 * @return Returns the time.
	 */
	public long getTime() {
		return time;
	}

	/**
	 * @param time The time to set.
	 */
	public void setTime(long time) {
		this.time = time;
	}

	/**
	 * @return Returns the url.
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url The url to set.
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	public int getExecIndex() {
		return execIndex;
	}

	public void setExecIndex(int execIndex) {
		this.execIndex = execIndex;
	}

	public int getFuncIndex() {
		return funcIndex;
	}

	public void setFuncIndex(int funcIndex) {
		this.funcIndex = funcIndex;
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(long end) {
		this.end = end;
	}

	public long getStart() {
		return start;
	}

	public void setStart(long start) {
		this.start = start;
	}

}
